import request from '@/utils/request'

// 客户列表
export const fetchData = () => {
  return request({
    url: '/car/customer/CustomerList',
    method: 'get'
  })
}


// 省市区
export const getAreaTree = () => {
  return request({
    url: '/car/complanints/getAreaTree',
    method: 'get'
  })
}


// 客户注册
export function addCustomer(addFormData) {
  return request({
    url: '/car/customer/CustomerInsert',
    method: 'get',
    data: addFormData
  })
}

//锁定账号
export const lockAccount = (id) => {
  return request({
    url: '/car/customer/lockAccount',
    method: 'get',
    params:{
      id : id
    }
  })
}

//解锁账号
export const unitAccount = (id) => {
  return request({
    url: '/car/customer/unitAccount',
    method: 'get',
    params:{
      id : id
    }
  })
}
